package es.uji.viselab.benchmark.database;

import java.util.List;

import javax.swing.JPanel;

import es.uji.viselab.ViSeLabComponent;
import es.uji.viselab.benchmark.DataPackage;
import es.uji.viselab.benchmark.DataType;
import es.uji.viselab.experiment.ExperimentParameters;

public abstract class DBConnection implements ViSeLabComponent {

	int experimentId;
	int groupId;

	public abstract void Connect();

	public abstract void insert(DataPackage dp);

	public abstract double[][] getData(DataType dt);

	public abstract double getIndicator(int experimentId, DataType dt);

	public abstract JPanel getPanel();

	public int getExperimentId() {
		return experimentId;
	}

	public void setNewExperimentId(int i) {
		experimentId = i;
	};

	public void setNewGroupId(int i) {
		groupId = i;
	};

	public abstract int nextExperimentId();

	public abstract int nextGroupId();

	public int getGroupId() {
		return groupId;
	}

	public abstract List<Integer> getExperimentsList(int groupId);

	public abstract ExperimentParameters getExperimentParameters(int experimentId);







}
